package com.aaa.hospital.ManagementEnd.mapper;

import com.aaa.hospital.ManagementEnd.pojo.Unit;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UnitMapper {
    List<Unit> queryAll();
    Unit selectById(int unitid);
    int insert(Unit unit);
    int update (Unit unit);
    int delete(int id);

}
